package com.heyue.demo.thread;

/**
 * @author fenghe
 * @date 2022/2/5 11:35
 */
public class ThreadState extends Thread {
    public ThreadState(String name){
        super(name);
    }

    @Override
    public void run(){
        for(int i=0;i<=20;i++){
            System.out.println(this.getName() + ":" + i);
        }
    }
}
